/* 
 * Copyright (c) 2019, CENTRIN.CIYUN.LTD. All rights reserved.
 */
package com.cory.boot.domain.chart;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 表格数据
 * @author xiongcong
 * @date 2019-04-09
 */
@Data
@NoArgsConstructor
public class Table  {
    public String key;
    public String name;
    public Thead thead;
    public Tbody tbody;
    
    public Table(String name) {
        this.name = name;
    }
    
    public Table(String key, String name) {
        this.key = key;
        this.name = name;
    }
    
    public Table thead(Thead thead) {
        this.thead = thead;
        return this;
    }
    
    public Table tbody(Tbody tbody) {
        this.tbody = tbody;
        return this;
    }
}
